package com.java.tutorials.spring.springInAction4th.chapter02.autoconfig;

import org.springframework.stereotype.Component;

/**
 * Created by xuzhike on 2016/2/17.
 */
@Component
public class SgtPeppers1 implements CompactDisc1 {

    private String title = "Sgt. Pepper's Lonely Hearts Club Band";
    private String artist = "The Beatles";

    public void play() {
        System.out.print("Playing " + title + " by " + artist);
    }

}
